home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1321 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  3.5 KB

  1. Path: news1.h1.usa.pipeline.com!usenet
  2. From: grantp@usa.pipeline.com(Pete)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: C++ with Zapp vs. Delphi
  5. Date: 10 Jan 1996 12:09:50 GMT
  6. Organization: Pipeline USA
  7. Message-ID: <4d0aae$s9v@news1.usa.pipeline.com>
  8. References: <DBk8wg2yqjbB083yn@iaccess.za>
  9. NNTP-Posting-Host: pipe8.h1.usa.pipeline.com
  10. X-PipeUser: grantp
  11. X-PipeHub: usa.pipeline.com
  12. X-PipeGCOS: (Pete)
  13. X-Newsreader: Pipeline USA v3.3.0
  14.  
  15. On Jan 10, 1996 07:01:55 in article <Re: C++ with Zapp vs. Delphi>,
  16. 'vincer@iaccess.za (Vince Risi)' wrote: 
  17.  
  18.  
  19. Pete: 
  20. >> If the intent is to  compare language, then the proper pairing is 
  21. >> Pascal (or Object > Pascal) vs. C++. 
  22. >> If discussing development systems, Delphi vs. MSVC++ might be more 
  23. >> appropriate. 
  24. Vince: 
  25. >Not a fair comparison, perhaps Visual Basic or Powerbuilder vs Delphi 
  26. >as visual languages. 
  27. Agreed, but in the context of the subject line, MSVC++ & Delphi is 
  28. a more appropriate comparison. 
  29.  
  30. Pete: 
  31. >> In the first case; Pascal vs. C++;  C++ wins hands down. 
  32. Vince: 
  33. >Purely subjective and definitely spurious. As languages go they 
  34. >both have strength and weaknesses. 
  35. Very true.  I just believe that in producing complex systems (or even 
  36. just plain large), Delphi simply falls short.  Don't get me wrong, 
  37. I like Delphi and use it for what it's good for.  Likewise C++ systems. 
  38.  
  39. Pete: 
  40. >> Note that we are considering the languages with their respective 
  41. >> standard libraries.  Note also, that the comparison must include 
  42. >> the whole gamut of software production, not just simple school 
  43. >> projects or GUI-only front-ends. 
  44. Vince: 
  45. >Whats your point here? 
  46. The point is that many software packages are primaly front-ends to 
  47. databases or other servers.  Often the great majority of code in 
  48. such programs is involved in interacting with the user.  Delphi, 
  49. PowerBuilder, VB, and the like are the perfect tools for those 
  50. products.  Of course, you can build all of those front-ends with 
  51. C++ also, it just takes a little more time and effort. 
  52.  
  53. But try writing a complex math computation or systems that require 
  54. extensive memory management, and the others either can't do it at 
  55. all, are very clumsy at best, or run at snail's pace.  In other words, 
  56. C++ gives you all that Delphi et al give you, plus some. 
  57.  
  58. Pete: 
  59. >> In the second case, interpretation of "Powerful" must be established. 
  60. >> Assuming that "more powerful" means that a given amount of 
  61. >> source code or effort by the developer produces more functionality, 
  62. >> the two are actually quite close to one another.  Delphi wins in the 
  63. >> speed of GUI development arena.  MSVC++ wins in systems involving 
  64. >> much computation and data manipulation.  Also, C++ has capabilities 
  65. >> that Delphi simply doesn't have or are difficult to implement. 
  66. Vince: 
  67. >Specifically? 
  68.  
  69. Since I'm not an expert in Pascal, I may be wrong on this -- in fact, I 
  70. hope someone corrects me on this so that I can solve this problem :-) 
  71. -- I have found no way to dynamically allocate a specific amount of 
  72. memory in Pascal where the amount is determined at run time.  In other 
  73. words, I can't do the Pascal equivalent of this: 
  74.  
  75.      int siz = CountObjex(); 
  76.      Obj * pObjArray = new Obj[siz]; 
  77.  
  78. I know that I could use a container class that allocates a predetermined 
  79. (by the system) amount of space, then adds to it as it's needed, but 
  80. that's:   
  81.    1.  wasteful as siz may be 1, or even 0; 
  82.    2.  There's a good chance that, as the array grows, it has to 
  83.         reallocate memory, which involves copying -- needless runtime 
  84.        inefficiency. 
  85.  
  86. -- 
  87.  
  88. Pete
  89.